/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Calendar;

/**
 * <p>Project: javaseapp - If03
 * <p>Powered by webrx On 2021-07-29 14:59:25
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class If04 {
    public static void main(String[] args) {
        var c = Calendar.getInstance();
        c.set(2016,8-1,1);
        int m = c.get(Calendar.MONTH) + 1;
        int d = c.get(Calendar.DATE);
        System.out.println(m);
        System.out.println(d);
        if (m == 5 && d == 1) {
            System.out.println("五一劳动节...");
        }else if(m == 7 && d == 1) {
            System.out.println("建党节...");
        }else if(m == 8 && d == 1) {
            System.out.println("建军节...");
        }

        int year = c.get(Calendar.YEAR);
        System.out.println("猴鸡狗猪鼠牛虎兔龙蛇马羊".charAt(year%12));

        //if(1) System.out.println("error1");
        //if(c=1) System.out.println("error2");
        //if(c==1) System.out.println("error3");
        //if() xxx
        //if(){xxx}
    }
}
